import json
from fastapi import APIRouter, Request, Query
from fastapi.responses import JSONResponse
from pydantic import BaseModel
from typing import List, Optional
from ollama import Client

# Ollama 运行起来后，使用 langchain 加载
router = APIRouter()

@router.get("/test")
async def test():
    return JSONResponse(content={"message": "Hello World"})